<?php if($num_rows > $limit): ?>
	<p class="warning">
		The keywords provided are too broad and so only <?=$limit?> results are shown.
		Please narrow your search by using a different keyword.
	</p>
<?php endif; ?>
<?php if($num_rows == 0): ?>
	<p class="warning">
		Sorry, there are no results.
	</p>
<?php else: ?>
	<div class="table">
		<h2>Showing Results for: <?=$keyword?> (<?=$num_rows?> Results)</h2>
		<div class="content">
				<ul class="heading"> 
					<li class="sp_name">Name</li>
					<li class="sp_tier">Tier</li>
					<li class="sp_rating">Rating</li>
				</ul>
	    		<?php foreach ($player as $item): ?>
					<ul class="row">
						<li class="sp_name">
							<a href="<?= site_url(array('stats', 'player', $item['user_id'])) ?>">
	                			<?= $item['name'] ?>
							</a>
						</li>
						<li class="sp_tier"><?= $item['tier'] ?></li>
						<li class="sp_rating"><?= round($item['rating'], 2) ?></li>
					</ul>
				<?php endforeach; ?>
		</div>
		<span class="fill"></span>
	</div>
<?php endif; ?>